package main

import "fmt"

type Employee struct {
    ID        int
    Name      string
}
func EmployeeByID(id int) Employee {
    var a Employee
    return a
}

//PatchInstanceMethod中,替换的函数replace第一个参数为函数所属结构的类型
func main() {
    fmt.Printf("%p\n", EmployeeByID(1))
    a := EmployeeByID(1)
    fmt.Printf("%p\n", a)
}
